package test2;

import java.text.SimpleDateFormat;
import java.util.Date;

public class mapdata {
	String irum, phone, userID;
	Date nal;
	
	public mapdata(String id,String irum,String phone){
		this.userID=id;
		this.phone=phone;
		this.irum=irum;
		Date nal = new Date();
		
	}

	public String getName() {
		return irum;
	}

	public String getPhone() {
		return phone;
	}

	public String getUserID() {
		return userID;
	}

	public Date getNal() {
		return nal;
	}
	@Override
	public String toString() {
		SimpleDateFormat sd = new SimpleDateFormat("yyyy-MM-dd");
		String temp = sd.format(nal);
		String str = String.format("%-10s%-10s%-15s%-12s\n", userID, irum,
				phone, temp);
		return str;
	}


}
